#ifndef __ENGINE_REQUEST_SETUP_included
#define __ENGINE_REQUEST_SETUP_included

#include "Request.h"

namespace Engine {

class CRequestSetup : public CRequest {

	int mChannelId;
	int mPeerDeviceId;

	void PostParse() {
		mChannelId = GetParameterInt(string("channel"));
		mPeerDeviceId = GetParameterInt(string("peer"));
	}

public :

	CRequestSetup(boost::asio::streambuf& data) :
	   CRequest(string(COMMAND_SETUP), data)
	{
		PostParse();
	}

	CRequestSetup(boost::shared_ptr<std::istream> is) :
		CRequest(string(COMMAND_SETUP), is)
	{
		PostParse();
	}

	int GetChannelId() { return mChannelId; }
	int GetPeerId() { return mPeerDeviceId; }

	virtual void DoRequest() {
		
	}
};

}

#endif //__ENGINE_REQUEST_SETUP_included